//
//  SettingsManager.h
//  SettingsPage
//
//  Created by CPX on 2018/6/15.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LanguageModel.h"


/**
 设置页相关设置类
 */
@interface SettingsManager : NSObject

+ (instancetype)sharedManager;

@property (nonatomic) BOOL enableReadProgress;

@property (nonatomic,strong) LanguageModel *tranLan;
@property (nonatomic,strong) LanguageModel *mp3Lan;


//pray time 算法
@property (nonatomic) NSInteger asr; ///<0 1， 默认 0
@property (nonatomic) NSInteger highLatitude; ///<1，2，3  默认2
@property (nonatomic) NSInteger prayTimeCalMeth; ///见 PrayTime.h

- (void)saveAsr:(NSInteger)asr;
- (void)saveHighLatitude:(NSInteger)highLatitude;
- (void)savePrayTimeCalMeth:(NSInteger)prayTimeCalMeth;

- (void)saveReadingProgress:(BOOL)readingProgress;

- (void)saveQuranTransLan:(LanguageModel*)lan;
- (void)saveMp3Lan:(LanguageModel*)lan;

@end
